package com.guojh.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/")
public class Quick2Controller {

    @Value("${name}")
    public String name;

    @Value("${person.addr}")
    public String addr;

    @RequestMapping("quick2")
    @ResponseBody
    public String quick2() {
        return "yml获取普通数据的配置name：" + name + "——addr：" + addr;
    }

}
